package com.xiaotu.common.model;

/**
 * 电影备案发行信息实体类
 *
 * @auther GaoHJ
 * @create 2017/10/9
 */
public class MOVPublicModel extends TVModel
{
    private String type;//类型：故事，动画，纪录，科教，特种，合拍
    private String production;//备案单位
    private String licenseNum;//备案立项号
    private String pubMonth;//备案月份
    private String result;//备案结果
    private String introduction;//简介
    private long timestamp;

    public MOVPublicModel()
    {
    }


    public MOVPublicModel(String tvId, String tvName, String type, String production, String
            licenseNum, String
            pubMonth, String screenwriter, String result, String area, String introduction)
    {
        super(tvId, tvName);
        this.type = type;
        this.production = production;
        this.licenseNum = licenseNum;
        this.pubMonth = pubMonth;
        this.result = result;
        this.setArea(area);
        this.introduction = introduction;
        this.setScreenwriter(screenwriter);
        this.timestamp = System.currentTimeMillis();
    }

    @Override
    public boolean equals(Object o)
    {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        MOVPublicModel that = (MOVPublicModel) o;

        return getLicenseNum() != null ? getLicenseNum().equals(that.getLicenseNum()) : that
                .getLicenseNum() == null;
    }

    @Override
    public int hashCode()
    {
        return getLicenseNum() != null ? getLicenseNum().hashCode() : 0;
    }

    public String getProduction()
    {
        return production;
    }

    public void setProduction(String production)
    {
        this.production = production;
    }

    public String getLicenseNum()
    {
        return licenseNum;
    }

    public void setLicenseNum(String licenseNum)
    {
        this.licenseNum = licenseNum;
    }

    public String getPubMonth()
    {
        return pubMonth;
    }

    public void setPubMonth(String pubMonth)
    {
        this.pubMonth = pubMonth;
    }

    public String getResult()
    {
        return result;
    }

    public void setResult(String result)
    {
        this.result = result;
    }

    public String getIntroduction()
    {
        return introduction;
    }

    public void setIntroduction(String introduction)
    {
        this.introduction = introduction;
    }

    public long getTimestamp()
    {
        return timestamp;
    }

    public void setTimestamp(long timestamp)
    {
        this.timestamp = timestamp;
    }

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        this.type = type;
    }
}
